//
//  StatisticMore.swift
//  MakeMoney
//
//  Created by fan zhiqiang on 2024/12/21.
//

import SwiftUI

struct StatisticMore: View {
    @Bindable var pathStore: PathStore
    let lotterys: [Lottery]
    @State private var digit = DigitStatistic()
    
    var body: some View {
        Form {
            Section {
                Text("时间间隔")
                Text("\(digit.days.joined(separator: "天"))")
            }
            Section {
                
            }
        }
        .navigationTitle("更多信息")
        .onAppear {
            digit = getDateIntervalWith(lotterys)
        }
    }
}

#Preview {
    StatisticMore(pathStore: .init(), lotterys: [])
}

class StatisticMorePath: PathName { }
